/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Tbv_comunaCriteria extends AbstractORMCriteria {
	public final IntegerExpression co_id_comuna;
	public final StringExpression co_comuna;
	
	public Tbv_comunaCriteria(Criteria criteria) {
		super(criteria);
		co_id_comuna = new IntegerExpression("co_id_comuna", this);
		co_comuna = new StringExpression("co_comuna", this);
	}
	
	public Tbv_comunaCriteria(PersistentSession session) {
		this(session.createCriteria(Tbv_comuna.class));
	}
	
	public Tbv_comunaCriteria() throws PersistentException {
		this(orm.Bdvendomaticav04PersistentManager.instance().getSession());
	}
	
	public Tbv_provinciaCriteria createTbv_provinciapr_id_provinciaCriteria() {
		return new Tbv_provinciaCriteria(createCriteria("tbv_provinciapr_id_provincia"));
	}
	
	public Tbv_maquinaCriteria createTbv_maquinaCriteria() {
		return new Tbv_maquinaCriteria(createCriteria("ORM_Tbv_maquina"));
	}
	
	public Tbv_comuna uniqueTbv_comuna() {
		return (Tbv_comuna) super.uniqueResult();
	}
	
	public Tbv_comuna[] listTbv_comuna() {
		java.util.List list = super.list();
		return (Tbv_comuna[]) list.toArray(new Tbv_comuna[list.size()]);
	}
}

